package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息模板对象 basicMessageTemplate
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
public class BasicMessageTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息模板编号 */
    private Long messageTemplateId;

    /** 消息模板名称 */
    @Excel(name = "消息模板名称")
    private String messageTemplateName;

    /** 消息模板内容 */
    @Excel(name = "消息模板内容")
    private String messageTemplateContent;

    /** 消息模板类型 */
    @Excel(name = "消息模板类型")
    private String messageTemplateType;

    /** 是否默认模板 */
    @Excel(name = "是否默认模板")
    private Integer isDefault;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 上次更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 使用次数 */
    @Excel(name = "使用次数")
    private Long usageCount;

    public void setMessageTemplateId(Long messageTemplateId) 
    {
        this.messageTemplateId = messageTemplateId;
    }

    public Long getMessageTemplateId() 
    {
        return messageTemplateId;
    }
    public void setMessageTemplateName(String messageTemplateName) 
    {
        this.messageTemplateName = messageTemplateName;
    }

    public String getMessageTemplateName() 
    {
        return messageTemplateName;
    }
    public void setMessageTemplateContent(String messageTemplateContent) 
    {
        this.messageTemplateContent = messageTemplateContent;
    }

    public String getMessageTemplateContent() 
    {
        return messageTemplateContent;
    }
    public void setMessageTemplateType(String messageTemplateType) 
    {
        this.messageTemplateType = messageTemplateType;
    }

    public String getMessageTemplateType() 
    {
        return messageTemplateType;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setUsageCount(Long usageCount) 
    {
        this.usageCount = usageCount;
    }

    public Long getUsageCount() 
    {
        return usageCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageTemplateId", getMessageTemplateId())
            .append("messageTemplateName", getMessageTemplateName())
            .append("messageTemplateContent", getMessageTemplateContent())
            .append("messageTemplateType", getMessageTemplateType())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("updater", getUpdater())
            .append("usageCount", getUsageCount())
            .toString();
    }
}
